package com.ruoyi.chatgpt.domain;

import java.math.BigDecimal;

import com.ruoyi.common.enums.OrderStatusEnum;
import com.ruoyi.common.enums.PayTypeEnum;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 gpt_order
 * 
 * @author ruoyi
 * @date 2023-06-29
 */
public class GptOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员ID */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String code;

    /** 密码 */
    @Excel(name = "密码")
    private Long userId;

    /** 套餐ID */
    @Excel(name = "套餐ID")
    private Long packageId;

    /** 折扣码 */
    @Excel(name = "折扣码")
    private String discountCode;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 字数 */
    @Excel(name = "字数")
    private BigDecimal quantity;

    /** 支付类型 wechat-微信支付、alipay-支付宝、card-卡支付、other-其他类型支付 */
    @Excel(name = "支付类型 wechat-微信支付、alipay-支付宝、card-卡支付、other-其他类型支付")
    private Integer payType;

    /** 订单状态，1-已创建待支付，2-已支付，3-取消支付，4-超时关闭 */
    @Excel(name = "订单状态，1-已创建待支付，2-已支付，3-取消支付，4-超时关闭")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPackageId(Long packageId) 
    {
        this.packageId = packageId;
    }

    public Long getPackageId() 
    {
        return packageId;
    }
    public void setDiscountCode(String discountCode) 
    {
        this.discountCode = discountCode;
    }

    public String getDiscountCode() 
    {
        return discountCode;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }
    public void setPayType(Integer payType)
    {
        this.payType = payType;
    }

    public Integer getPayType()
    {
        return payType;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("userId", getUserId())
            .append("packageId", getPackageId())
            .append("discountCode", getDiscountCode())
            .append("amount", getAmount())
            .append("quantity", getQuantity())
            .append("payType", getPayType())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
